package com.net.xpay.common.manager;


import com.net.common.manager.DomainManager;
import com.net.xpay.common.domain.CheckCode;
import com.net.xpay.common.enums.user.CheckCodeType;
import com.net.xpay.core.model.CheckCodeSearchModel;

import java.util.List;

public interface CheckCodeManager extends DomainManager<Long,CheckCode> {

    CheckCode findByMobileAndType(String mobile, CheckCodeType checkCodeType);

    CheckCode findLastByRelatedId(String mobile, CheckCodeType checkCodeType, Long relatedId);

    List<CheckCode> search(CheckCodeSearchModel searchModel);

    long searchCount(CheckCodeSearchModel searchModel);
}
